export default interface WorkflowNode {
    /**
     * 是否业务节点, 审批节点不存在
     */
    businessNode?: boolean
    /**
     * 是否是可编辑审批节点
     */
    approveAndSaveNode?: boolean
    /**
     * 流程节点 id
     */
    workItemId: string
    /**
     * 根流程 id
     */
    rootProcInstId: string
    /**
     * 流程实例 id
     */
    processInstId: string
    /**
     * app-id
     */
    tenantID: string
    /**
     * 表单 url
     */
    actionURL: string
    /**
     * 当前节点状态
     */
    currentState: WorkflowNodeState
    actionMask: string
    activityDefId: string
    activityInstId: string
    activityInstName: string
    allowAgent: string
    assistant: string
    assistantName: string
    attributes: object
    bizObject: object
    bizState: number
    catalogName: string
    catalogUUID: string
    correlationBizId: string
    createTime: string
    dealOpinion: string
    dealResult: string
    endTime: string
    finalTime: string
    isTimeOut: string
    limitNum: string
    limitNumDesc: string
    partiName: string
    participant: string
    participantOrg: string
    participantOrgName: string
    pressNum: number
    priority: number
    processChName: string
    processDefId: string
    processDefName: string
    processInstCreator: string
    processInstName: string
    remindTime: string
    startTime: string
    statesList: string
    timeOutNum: string
    timeOutNumDesc: string
    urlStatus: string
    urlType: string
    viewTime: string
    workItemDesc: string
    workItemName: string
    workItemType: string
}

export enum WorkflowNodeState {
    /**
     * 等待接收
     */
    WAITING_RECEIVE = 4,
    /**
     * 挂起
     */
    SUSPENDED = 8,
    /**
     * 运行
     */
    RUNNING = 10,
    /**
     * 完成
     */
    COMPLETED = 12,
    /**
     * 终止
     */
    TERMINATED = 13,
    /**
     * 取消
     */
    ABORTED = 14
}

// public static final int WAITING_RECEIVE = 4;
// public static final int SUSPENDED = 8;
// public static final int RUNNING = 10;
// public static final int COMPLETED = 12;
// public static final int TERMINATED = 13;
// public static final int ABORTED = 14;
